package com.hifar.test.collectdata.pojo.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hifar.plat.AopOption.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhuWeiWei
 * @description 力学设备运行数据
 * @date 2025/2/12 9:51
 */
@Data
@ApiModel("力学设备运行数据")
public class DynamicsCollectDataVO {
    @ApiModelProperty("id")
    private String id;
    @ApiModelProperty("持续时间")
    private BigDecimal durationPv;
    @Dict(dictCode = "hf_euip_running_vibarate_status")
    @ApiModelProperty("状态")
    private String vibarateStatusPv;
    @ApiModelProperty("振动量")
    private BigDecimal vibrateValuePv;
    @ApiModelProperty("振动方向")
    @Dict(dictCode = "hf_equip_running_direction")
    private String directionPv;
    @ApiModelProperty("表名称")
    @NotBlank(message = "tableName不能为空!")
    private String tableName;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date runningTime;
}
